package ihm;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JPanel;

public class PannCote extends JPanel{
	
	public PannCote(){
		JButton b=new JButton(" test ");
		add(b);
	}		
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void paintComponent(Graphics g) 
	{
		super.paintComponent(g); 
	
		String fichier = "images.jpg";		
		BufferedImage im;
		try {
			im = ImageIO.read(new File(fichier));
			g.drawImage(im, 0, 0, 700, 760, null);			
		} catch (IOException e) {e.printStackTrace();}
	}//fin paintComponent()
	
}
